php forum
php mysql forum
php mysql smarty
 
Topic Options
#144120 - 03/05/02 01:24 PM [6.2x] Hide Admin Tools For Non-Mods/Admin - v0.3
Dave2 Offline
Member

Registered: 12/16/01
Posts: 672
Loc: Bath || Reading, England
Basically, this does exactly what it says on the tin wink .

[code][/code]Avaliable from:

TEXT FILE | NO MULTIHACK FILE AVALIABLE -- It crashes on my PC

Comments/bug reports/etc please laugh
_________________________
The allaboutgames.co.uk UBB.classic -- Reborn and XHTML'd, 19th May 2002

Top
#144121 - 03/05/02 03:59 PM Re: [6.2x] Hide Admin Tools For Non-Mods/Admin - v0.3
Fuzion Offline
Member

Registered: 11/22/00
Posts: 717
Loc: Arkansas
CURRENTLY DOES NOT ALLOW GUESTS TO VIEW POSTS.... =/

Top
#144122 - 03/05/02 04:06 PM Re: [6.2x] Hide Admin Tools For Non-Mods/Admin - v0.3
Dave2 Offline
Member

Registered: 12/16/01
Posts: 672
Loc: Bath || Reading, England
Yeah, that's annoying, I'm waiting for someone to tell me how to allow guests.

Well, anybody? laugh
_________________________
The allaboutgames.co.uk UBB.classic -- Reborn and XHTML'd, 19th May 2002

Top
#144123 - 03/05/02 04:07 PM Re: [6.2x] Hide Admin Tools For Non-Mods/Admin - v0.3
Charles Offline
Veteran

Registered: 10/22/00
Posts: 2637
Loc: London, UK
does it break the cache ?
_________________________
Do you believe in love at first sight,
or should I walk by again?

Top
#144124 - 03/05/02 04:09 PM Re: [6.2x] Hide Admin Tools For Non-Mods/Admin - v0.3
gohaku Offline
Junior Member

Registered: 10/17/01
Posts: 19
work fine with my 6.21.thank you! laugh

Top
#144125 - 03/05/02 04:36 PM Re: [6.2x] Hide Admin Tools For Non-Mods/Admin - v0.3
Dave2 Offline
Member

Registered: 12/16/01
Posts: 672
Loc: Bath || Reading, England
</font><blockquote><font size="1" face="Verdana, Helvetica, sans-serif">quote:</font><hr /><font size="2" face="Verdana, Helvetica, sans-serif">Originally posted by Chuck:
does it break the cache ?</font><hr /></blockquote><font size="2" face="Verdana, Helvetica, sans-serif">confused

Accurding to your sig, probably shocked
_________________________
The allaboutgames.co.uk UBB.classic -- Reborn and XHTML'd, 19th May 2002

Top
#144126 - 03/06/02 07:29 AM Re: [6.2x] Hide Admin Tools For Non-Mods/Admin - v0.3
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
No, it doesn't work with cache.

To get it to work with guests:

[code]Find:
-----

@user_profile = &verify_id_num($username, $password, $user_number);

Replace with:
-------------

my @user_profile = $user_number ? &verify_id_num($username, $password, $user_number) : "";
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top
#144127 - 03/06/02 01:00 PM Re: [6.2x] Hide Admin Tools For Non-Mods/Admin - v0.3
Dave2 Offline
Member

Registered: 12/16/01
Posts: 672
Loc: Bath || Reading, England
Thanks, updated...

Any way to get it to work with cache? frown
_________________________
The allaboutgames.co.uk UBB.classic -- Reborn and XHTML'd, 19th May 2002

Top
#144128 - 03/06/02 01:49 PM Re: [6.2x] Hide Admin Tools For Non-Mods/Admin - v0.3
Charles Capps Offline
Admin Emeritus

Registered: 01/09/00
Posts: 5438
Loc: Lynnwood, WA
Yeah, wait for us to do it in the official code. wink OpenTopic is currently experimenting with some JavaScript + CSS tricks that we intend to borrow once proven.

Because this hack breaks the cache, I must advise against using it.
_________________________
UBB.classic: Love it or hate it, it was mine.

Top
#144129 - 03/12/02 12:40 PM Re: [6.2x] Hide Admin Tools For Non-Mods/Admin - v0.3
Mystik Gotan Offline
Member

Registered: 12/20/01
Posts: 49
Loc: The Netherlands
For those who use sticky (add in your textfile, author tipsy )

~;

my $noadmintools = qq~
<td width="50%" bgcolor="$vars_style{AltColumnColor2}" valign="bottom" align="center">
<font size="1" face="$vars_style{FontFace}">
</font>
</td>
~;

my $admintools = qq~
<td width="50%" bgcolor="$vars_style{AltColumnColor2}" valign="bottom" align="center">
<font size="1" face="$vars_style{FontFace}">
$close_option $move_option $delete_option
</font>
</td>
~;

my $bottom2 = qq~

SHOULD BE:

~;

my $noadmintools = qq~
<td width="50%" bgcolor="$vars_style{AltColumnColor2}" valign="bottom" align="center">
<font size="1" face="$vars_style{FontFace}">
</font>
</td>
~;

my $admintools = qq~
<td width="50%" bgcolor="$vars_style{AltColumnColor2}" valign="bottom" align="center">
<font size="1" face="$vars_style{FontFace}">
$close_option $move_option $delete_option $sticky_option
</font>
</td>
~;

my $bottom2 = qq~

I'm installing it, I'll tell what happens..
Bye

Works (y) , thank you smile
_________________________
No images accepted anymore

Top
#144130 - 03/12/02 12:43 PM Re: [6.2x] Hide Admin Tools For Non-Mods/Admin - v0.3
Dave2 Offline
Member

Registered: 12/16/01
Posts: 672
Loc: Bath || Reading, England
Bah...

Well, since I somehow forgot about the cache this is a bit crap anyway tipsy .
_________________________
The allaboutgames.co.uk UBB.classic -- Reborn and XHTML'd, 19th May 2002

Top
#144131 - 03/12/02 12:56 PM Re: [6.2x] Hide Admin Tools For Non-Mods/Admin - v0.3
Mystik Gotan Offline
Member

Registered: 12/20/01
Posts: 49
Loc: The Netherlands
Nah, I think it's nice..

Shouldn't have toke so much time, so..
Nice hack smile
Installed it, but ya better put in for sticky (see my last post) and the code LK gave you..
People could get errors and you don't want so, I guess tipsy
_________________________
No images accepted anymore

Top
#144132 - 03/12/02 01:50 PM Re: [6.2x] Hide Admin Tools For Non-Mods/Admin - v0.3
Dave2 Offline
Member

Registered: 12/16/01
Posts: 672
Loc: Bath || Reading, England
It breaks the cache (and there is no way of getting around that). That means that there is a load of load on the server on busy UBBs.

And I did stick in LK's code tipsy .
_________________________
The allaboutgames.co.uk UBB.classic -- Reborn and XHTML'd, 19th May 2002

Top
#144133 - 03/12/02 01:53 PM Re: [6.2x] Hide Admin Tools For Non-Mods/Admin - v0.3
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
Sure there is a way. Put the permissions inside a cookie, and make a js if command.
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top
#144134 - 03/12/02 01:58 PM Re: [6.2x] Hide Admin Tools For Non-Mods/Admin - v0.3
Dave2 Offline
Member

Registered: 12/16/01
Posts: 672
Loc: Bath || Reading, England
Well there is that, with the following problems:

I know no JS
I don't know how to set cookies in Perl (PHP, yes, but not Perl...)

laugh
_________________________
The allaboutgames.co.uk UBB.classic -- Reborn and XHTML'd, 19th May 2002

Top
#144135 - 03/12/02 02:12 PM Re: [6.2x] Hide Admin Tools For Non-Mods/Admin - v0.3
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
Take a look at jordo's PM Inbox hack. Just make the forum_summary.pl's if in topic page's place, and ultimatebb.cgi instructions only in get_topic or something like that.
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks